<%@page import="org.springframework.web.context.request.RequestScope"%>
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="UTF-8"%>
<%@page import="com.csair.demo.utils.BeanFactoryHelper"%> 
<%@page import="com.csair.demo.utils.ApplicationContextUtil"%> 
<%@page import="org.springframework.context.ApplicationContext"%> 
<%@page import="com.csair.demo.services.IScheduleService"%> 
<%@page import="com.csair.demo.pojo.Schedule"%>
<%@page import="java.util.List"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>invoke</title>
</head>
<body>
<%
BeanFactoryHelper beanFactoryHelper = (BeanFactoryHelper)request.getAttribute("beanFactoryHelper");
//获取业务逻辑对象
IScheduleService scheduleService = (IScheduleService)beanFactoryHelper.getBean("scheduleServiceImpl");
try {	
	Schedule schedule = new Schedule();
	schedule.setAcType("acType");
	schedule.setCc("cc");
	schedule.setCs("Cs");
	schedule.setDesk("desk");
	schedule.setDest("dest");
	schedule.setEta("Eta");
	schedule.setEtd("etd");
	schedule.setFitDate("fitDate");
	scheduleService.saveSchedule(schedule);	
	
	
	List<Schedule> scheduleList = scheduleService.getAllSchedule();
	
	for(Schedule scheduleObj : scheduleList){				
		out.println("ID：" + scheduleObj.getId() + " acType：" + scheduleObj.getAcType());
	}
	
} catch (Exception e) {
	e.printStackTrace();
}
%>
</body>
</html>